package com.inxedu.os.edu.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EduCourseStudyhistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EduCourseStudyhistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("USER_ID =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("USER_ID <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("USER_ID >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("USER_ID >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("USER_ID <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("USER_ID <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("USER_ID in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("USER_ID not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("USER_ID between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("USER_ID not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNull() {
            addCriterion("COURSE_ID is null");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNotNull() {
            addCriterion("COURSE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andCourseIdEqualTo(Integer value) {
            addCriterion("COURSE_ID =", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotEqualTo(Integer value) {
            addCriterion("COURSE_ID <>", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThan(Integer value) {
            addCriterion("COURSE_ID >", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("COURSE_ID >=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThan(Integer value) {
            addCriterion("COURSE_ID <", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThanOrEqualTo(Integer value) {
            addCriterion("COURSE_ID <=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdIn(List<Integer> values) {
            addCriterion("COURSE_ID in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotIn(List<Integer> values) {
            addCriterion("COURSE_ID not in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdBetween(Integer value1, Integer value2) {
            addCriterion("COURSE_ID between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("COURSE_ID not between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andKpointIdIsNull() {
            addCriterion("KPOINT_ID is null");
            return (Criteria) this;
        }

        public Criteria andKpointIdIsNotNull() {
            addCriterion("KPOINT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andKpointIdEqualTo(Integer value) {
            addCriterion("KPOINT_ID =", value, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdNotEqualTo(Integer value) {
            addCriterion("KPOINT_ID <>", value, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdGreaterThan(Integer value) {
            addCriterion("KPOINT_ID >", value, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("KPOINT_ID >=", value, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdLessThan(Integer value) {
            addCriterion("KPOINT_ID <", value, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdLessThanOrEqualTo(Integer value) {
            addCriterion("KPOINT_ID <=", value, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdIn(List<Integer> values) {
            addCriterion("KPOINT_ID in", values, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdNotIn(List<Integer> values) {
            addCriterion("KPOINT_ID not in", values, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdBetween(Integer value1, Integer value2) {
            addCriterion("KPOINT_ID between", value1, value2, "kpointId");
            return (Criteria) this;
        }

        public Criteria andKpointIdNotBetween(Integer value1, Integer value2) {
            addCriterion("KPOINT_ID not between", value1, value2, "kpointId");
            return (Criteria) this;
        }

        public Criteria andPlayercountIsNull() {
            addCriterion("PLAYERCOUNT is null");
            return (Criteria) this;
        }

        public Criteria andPlayercountIsNotNull() {
            addCriterion("PLAYERCOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andPlayercountEqualTo(Integer value) {
            addCriterion("PLAYERCOUNT =", value, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountNotEqualTo(Integer value) {
            addCriterion("PLAYERCOUNT <>", value, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountGreaterThan(Integer value) {
            addCriterion("PLAYERCOUNT >", value, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountGreaterThanOrEqualTo(Integer value) {
            addCriterion("PLAYERCOUNT >=", value, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountLessThan(Integer value) {
            addCriterion("PLAYERCOUNT <", value, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountLessThanOrEqualTo(Integer value) {
            addCriterion("PLAYERCOUNT <=", value, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountIn(List<Integer> values) {
            addCriterion("PLAYERCOUNT in", values, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountNotIn(List<Integer> values) {
            addCriterion("PLAYERCOUNT not in", values, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountBetween(Integer value1, Integer value2) {
            addCriterion("PLAYERCOUNT between", value1, value2, "playercount");
            return (Criteria) this;
        }

        public Criteria andPlayercountNotBetween(Integer value1, Integer value2) {
            addCriterion("PLAYERCOUNT not between", value1, value2, "playercount");
            return (Criteria) this;
        }

        public Criteria andCourseNameIsNull() {
            addCriterion("COURSE_NAME is null");
            return (Criteria) this;
        }

        public Criteria andCourseNameIsNotNull() {
            addCriterion("COURSE_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andCourseNameEqualTo(String value) {
            addCriterion("COURSE_NAME =", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameNotEqualTo(String value) {
            addCriterion("COURSE_NAME <>", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameGreaterThan(String value) {
            addCriterion("COURSE_NAME >", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameGreaterThanOrEqualTo(String value) {
            addCriterion("COURSE_NAME >=", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameLessThan(String value) {
            addCriterion("COURSE_NAME <", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameLessThanOrEqualTo(String value) {
            addCriterion("COURSE_NAME <=", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameLike(String value) {
            addCriterion("COURSE_NAME like", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameNotLike(String value) {
            addCriterion("COURSE_NAME not like", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameIn(List<String> values) {
            addCriterion("COURSE_NAME in", values, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameNotIn(List<String> values) {
            addCriterion("COURSE_NAME not in", values, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameBetween(String value1, String value2) {
            addCriterion("COURSE_NAME between", value1, value2, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameNotBetween(String value1, String value2) {
            addCriterion("COURSE_NAME not between", value1, value2, "courseName");
            return (Criteria) this;
        }

        public Criteria andKpointNameIsNull() {
            addCriterion("KPOINT_NAME is null");
            return (Criteria) this;
        }

        public Criteria andKpointNameIsNotNull() {
            addCriterion("KPOINT_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andKpointNameEqualTo(String value) {
            addCriterion("KPOINT_NAME =", value, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameNotEqualTo(String value) {
            addCriterion("KPOINT_NAME <>", value, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameGreaterThan(String value) {
            addCriterion("KPOINT_NAME >", value, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameGreaterThanOrEqualTo(String value) {
            addCriterion("KPOINT_NAME >=", value, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameLessThan(String value) {
            addCriterion("KPOINT_NAME <", value, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameLessThanOrEqualTo(String value) {
            addCriterion("KPOINT_NAME <=", value, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameLike(String value) {
            addCriterion("KPOINT_NAME like", value, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameNotLike(String value) {
            addCriterion("KPOINT_NAME not like", value, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameIn(List<String> values) {
            addCriterion("KPOINT_NAME in", values, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameNotIn(List<String> values) {
            addCriterion("KPOINT_NAME not in", values, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameBetween(String value1, String value2) {
            addCriterion("KPOINT_NAME between", value1, value2, "kpointName");
            return (Criteria) this;
        }

        public Criteria andKpointNameNotBetween(String value1, String value2) {
            addCriterion("KPOINT_NAME not between", value1, value2, "kpointName");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("UPDATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("UPDATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("UPDATE_TIME =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("UPDATE_TIME <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("UPDATE_TIME >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("UPDATE_TIME <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("UPDATE_TIME <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("UPDATE_TIME in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("UPDATE_TIME not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("UPDATE_TIME not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}